#ifndef STRINGINPUT_H
#define STRINGINPUT_H
#include "sdl.h"
#include <string>
#include "sdl_ttf.h"
#include "GuiElement.h" 
#include "Draw.h"  

class StringInput: public GuiElement
{
    private:

    //The text surface
    SDL_Surface *text; 
	TTF_Font *font ;

	//The color of the font
	SDL_Color *textColor;

    public:
    //Initializes variables
    StringInput(int x, int y, std::string prp); 
    //Does clean up
    ~StringInput();
	std::string getString();
    //Handles input
    void handleInput(SDL_Event event);
    
    //Shows the message on screen
    void show_centered(SDL_Surface * screen);    
	//shows the message at it's rect location
	void drawElement(SDL_Surface* screen);
	void onClick();
	void onClick(SDL_Event event);
	void onClickOut();
	
};

#endif
